package com.wanshi.utils;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.sql.DataSource;

import com.mchange.v2.c3p0.ComboPooledDataSource;

public class JDBCUtil {
	
	private static ComboPooledDataSource source = new ComboPooledDataSource();
	
	
	public static DataSource getSource(){
		return source;
	}
	
	public static Connection getConn() throws ClassNotFoundException, SQLException{
		return source.getConnection();
	}
	

}
